package com.liuweiheng.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * 处理Feign调用服务降级兜底策略
 */
@Component
public class PaymentFallbackService implements PaymentHystrixFeignService {
    @Override
    public String paymentInfoOk(int id) {
        return "----- PaymentFabllbackService o(╥﹏╥)o";
    }

    @Override
    public String paymentInfoTimeout(int id) {
        return "----- PaymentFabllbackService o(╥﹏╥)o";
    }
}
